'''
Created on Oct 25, 2009

@author: Owner
'''
import os, time, random
import msvcrt


if os.name == 'nt':
	CLEAR_SCREEN = 'cls'
else:
	CLEAR_SCREEN = 'clear'

def clear_screen():
	os.system(CLEAR_SCREEN)
	pass

def kbfunc(): # does not work for UNIX
	x = msvcrt.kbhit()
	if x: 
		ret = ord(msvcrt.getch()) 
	else: 
		ret = 0 
	return ret
